<?php

use app\assets\TableAsset;
use yii\helpers\Html;

/**
 * @var $this yii\web\View
 * @var $package app\models\Package
 */

TableAsset::register($this);

$this->title = '套餐详情';
$this->params['breadcrumbs'][] = '物联网卡管理';
$this->params['breadcrumbs'][] = $this->title;
?>
<table class="table table-striped table-bordered table-hover">
    <tr>
        <th>编号</th>
        <td><?php echo $package->id;?></td>
    </tr>
    <tr>
        <th>名称</th>
        <td><?php echo Html::encode($package->name);?></td>
    </tr>
    <tr>
        <th>数据流量</th>
        <td><?php echo Yii::$app->formatter->asShortSize($package->data);?></td>
    </tr>
    <tr>
        <th>短信数量</th>
        <td><?php echo $package->sms;?></td>
    </tr>
    <tr>
        <th>语音（分钟）</th>
        <td><?php echo $package->voice;?></td>
    </tr>
    <tr>
        <th>费用</th>
        <td><?php echo $package->price;?></td>
    </tr>
    <tr>
        <th>超出流量</th>
        <td><?php echo Yii::$app->formatter->asShortSize($package->extra_data);?></td>
    </tr>
    <tr>
        <th>超出流量费用</th>
        <td><?php echo $package->extra_data_price;?></td>
    </tr>
    <tr>
        <th>超出短信费用</th>
        <td><?php echo $package->extra_sms_price;?></td>
    </tr>
    <tr>
        <th>超出短信费用</th>
        <td><?php echo $package->extra_voice_price;?></td>
    </tr>
    <tr>
        <th>创建时间</th>
        <td><?php echo Yii::$app->formatter->asDatetime($package->create_time);?></td>
    </tr>
    <tr>
        <th>备注</th>
        <td><?php echo Html::encode($package->remark);?></td>
    </tr>
</table>
